﻿function CTabs(pOptions) {
    var self = this;
    this.container = "";
    this.options = {
        active: null,
        collapsible: false,
        event: "click",
        heightStyle: "content",
        hide: null,
        show: null,
        // callbacks
        activate: null,
        beforeActivate: null,
        beforeLoad: null,
        load: null,
        vertical: false
    };
    $.extend(true, self.options, pOptions);
    this.Init = function (container) {
        self.container = container;
        if (self.options.vertical) {
            $(container).tabs().addClass("ui-tabs-vertical ui-helper-clearfix");
            $(container).find("ul.ui-tabs-nav li").removeClass("ui-corner-top").addClass("ui-corner-left");
        }
        else {
            $(container).tabs(self.options);
        }

    };
}